﻿namespace _01.策略模式.Strategies
{
    /// <summary>
    /// 折扣策略接口
    /// 适用对象：产品、订单
    /// </summary>
    public interface IDiscountStrategy
    {
        #region 01.产品适用折扣方法 —— decimal ApplyProductDiscount(decimal productPrice)
        /// <summary>
        /// 产品适用折扣方法
        /// </summary>
        /// <param name="productPrice">产品价格</param>
        /// <returns>折扣价</returns>
        decimal ApplyProductDiscount(decimal productPrice);
        #endregion

        #region 02.订单适用折扣方法 —— decimal ApplyOrderDiscount(decimal orderAmount)
        /// <summary>
        /// 订单适用折扣方法
        /// </summary>
        /// <param name="orderAmount">订单金额</param>
        /// <returns>结算价</returns>
        decimal ApplyOrderDiscount(decimal orderAmount);
        #endregion
    }
}
